<%@ Register TagPrefix="cc" Namespace="MyFramework.Web.UI.WebControls" Assembly="MyFramework.Web" %>
<%@ Register TagPrefix="uc1" TagName="Pager" Src="../../UserControls/Pager.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="SupplierList.aspx.vb" Inherits="MIMS_WRS.Web.SupplierList"%>
<cc:masterpage runat="server" templatefile="~/Offices/Settings/SettingMasterPage.ascx" id="Masterpage1">
	<cc:contentregion id="crContent" runat="server">
		<A href="SupplierDetail.aspx">Add new supplier</A>
		<BR>
		<DIV>Sort by:&nbsp;
			<asp:linkbutton id="SortSupplierCodeLink" onclick="SortLink_Click" runat="server">Supplier Code</asp:linkbutton>&nbsp;|&nbsp;
			<asp:linkbutton id="SortSupplierNameLink" onclick="SortLink_Click" runat="server">Supplier Name</asp:linkbutton>. 
			Current Sorting:&nbsp;
			<asp:label id="lblSorting" runat="server" enableviewstate="False" cssclass="CurrentSort">Supplier Code</asp:label></DIV>
		<BR>
		<cc:repeater id="rptList" runat="server">
			<headertemplate>
				<table class="List">
					<thead>
						<tr>
							<td>
								Supplier Code</td>
							<td>
								Supplier Name</td>
							<td>Con Point</td>
							<td>Loading Port</td>
							<td>Container Loading</td>
						</tr>
					</thead>
					<tbody>
			</headertemplate>
			<itemtemplate>
				<tr class="ItemRow">
					<td><a href='SupplierDetail.aspx?sup=<%# DataBinder.Eval(Container.DataItem, "SupplierCode")%>'><%# DataBinder.Eval(Container.DataItem, "SupplierCode")%></a></td>
					<td><a href='SupplierDetail.aspx?sup=<%# DataBinder.Eval(Container.DataItem, "SupplierCode")%>'><%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "SupplierName"))%></a></td>
					<td><%# GetConPoint(Container) %></td>
					<td><%# GetLoadingPort(Container) %></td>
					<td><%# Server.HtmlEncode(Convert.ToString(DataBinder.Eval(Container, "DataItem.ContainerLoading"))) %></td>
				</tr>
			</itemtemplate>
			<NoneTemplate>
				<tr>
					<td colspan="4">
						There is no items.
					</td>
				</tr>
			</NoneTemplate>
			<AlternatingItemTemplate>
				<tr class="AlternateItemRow">
					<td><a href='SupplierDetail.aspx?sup=<%# DataBinder.Eval(Container.DataItem, "SupplierCode")%>'><%# DataBinder.Eval(Container.DataItem, "SupplierCode")%></a></td>
					<td><a href='SupplierDetail.aspx?sup=<%# DataBinder.Eval(Container.DataItem, "SupplierCode")%>'><%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "SupplierName"))%></a></td>
					<td><%# GetConPoint(Container) %></td>
					<td><%# GetLoadingPort(Container) %></td>
					<td><%# Server.HtmlEncode(Convert.ToString(DataBinder.Eval(Container, "DataItem.ContainerLoading"))) %></td>
				</tr>
			</AlternatingItemTemplate>
			<footertemplate>
		</tbody>
		</table>
		</footertemplate>
		</cc:repeater>
		<DIV id="pager">
			<uc1:Pager id="ucPager" runat="server"></uc1:Pager></DIV>
	</cc:contentregion>
	<cc:contentregion id="pageTitle" runat="server">Supplier List 
</cc:contentregion>
</cc:masterpage>
